package com.basilc.serviceribbon;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: chuan.bai
 * @Description
 * @Date: Created on 11:13 2018/12/31
 * @Modified By:
 */
@RestController
public class HellowController {

    @Autowired
    HelloService helloService;

    @GetMapping(value = "/hi")
    public String hi(@RequestParam String name) {
        System.out.println("ribbon运行>>>>");
        return helloService.hiService( name );
    }

}
